/**
 * 
 */
package com.ubo.java.associations;

import com.ubo.util.Duo;

/**
 * @author saludegu
 * 
 */
public class Card {

	/**
	 * Cardinalité minimale.
	 */
	protected EAssociationCard mMinCard;

	/**
	 * Cardinalité maximale.
	 */
	protected EAssociationCard mMaxCard;

	/**
	 * 
	 * Constructor
	 * 
	 * @param minCard
	 * @param maxCard
	 */
	public Card(EAssociationCard minCard, EAssociationCard maxCard) {
		mMinCard = minCard;
		mMaxCard = maxCard;
	}

	/**
	 * Renvoie les cardinaltiés.
	 * 
	 * @return
	 */
	public Duo<EAssociationCard, EAssociationCard> getCard() {
		return new Duo<EAssociationCard, EAssociationCard>(mMinCard, mMaxCard);
	}
}
